import {} from 'antd';
import FormItem, { FormItemProps } from '@/components/form-item';
import EditableRowTable, { EditableRowTableProps } from '@/components/editable-row-table';
import { FC } from 'react';

interface EditableRowTableItemProps extends FormItemProps {
  editableRowTable?: EditableRowTableProps;
}

const EditableRowTableItem: FC<EditableRowTableItemProps> = ({
  editableRowTable,
  ...restProps
}) => {
  return (
    <FormItem {...restProps} valuePropName="dataSource">
      <EditableRowTable {...editableRowTable} />
    </FormItem>
  );
};

export default EditableRowTableItem;
